package cn.moningxi.mapper;

import cn.moningxi.bean.OShopCart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OShopCartMapper {

    Integer insertShopCart(OShopCart oShopCart);


    OShopCart queryShopCartByGoodsId(String goodsId);


    List<OShopCart> queryShopCartList(String customerId);

    Integer removeShopCart(Integer shopCartId);

    Integer updateShopCartAmount(OShopCart oShopCart);

    OShopCart queryShopCartByGoodsIdAndCid(@Param("goodsId") String goodsId, @Param("customerId") String customerId);

    OShopCart queryShopCartById(Long shopCartId);

    Integer updateShopCartAmount1(@Param("shopCartId") Integer shopCartId, @Param("amount") Integer amount);
}